<!DOCTYPE html>
<html lang=zh>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="1. 开发环境配置及运行第一个OpenGL ApplicationHow to do it…1sudo pacman -Syu  1sudo pacman -S gcc  1sudo pacman -S cmake  1gcc --version  1yay -S glfw-x11-git  1mkdir -p code&#x2F;Tutorial &amp;&amp; cd code&#x2F;">
<meta property="og:type" content="article">
<meta property="og:title" content="OpenGL数据可视化">
<meta property="og:url" content="https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/index.html">
<meta property="og:site_name" content="不甜不要钱&#39;s Blog">
<meta property="og:description" content="1. 开发环境配置及运行第一个OpenGL ApplicationHow to do it…1sudo pacman -Syu  1sudo pacman -S gcc  1sudo pacman -S cmake  1gcc --version  1yay -S glfw-x11-git  1mkdir -p code&#x2F;Tutorial &amp;&amp; cd code&#x2F;">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-03-28T00:07:25.000Z">
<meta property="article:modified_time" content="2021-03-28T00:12:17.233Z">
<meta property="article:author" content="Luna2333">
<meta property="article:tag" content="v1">
<meta name="twitter:card" content="summary">
    
    
      
        
          <link rel="shortcut icon" href="/blog/images/favicon.ico">
        
      
      
        
          <link rel="icon" type="image/png" href="/blog/images/favicon-192x192.png" sizes="192x192">
        
      
      
        
          <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon.png">
        
      
    
    <!-- title -->
    <title>OpenGL数据可视化</title>
    <!-- styles -->
    
<link rel="stylesheet" href="/blog/css/style.css">

    <!-- persian styles -->
    
      
<link rel="stylesheet" href="/blog/css/rtl.css">

    
    <!-- rss -->
    
    
<meta name="generator" content="Hexo 5.4.0"></head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/blog/">首页</a></li>
         
          <li><a href="/blog/about/">关于</a></li>
         
          <li><a href="/blog/archives/">归档</a></li>
         
          <li><a target="_blank" rel="noopener" href="https://gitee.com/luna2333/blog">项目</a></li>
         
          <li><a href="/blog/URL">LINK_NAME</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/blog/2021/03/28/2021%E8%AE%A1%E5%88%92%E8%A1%A8/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/blog/2021/03/27/hello-world/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">上一篇</span>
      <span id="i-next" class="info" style="display:none;">下一篇</span>
      <span id="i-top" class="info" style="display:none;">返回顶部</span>
      <span id="i-share" class="info" style="display:none;">分享文章</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.facebook.com/sharer.php?u=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://twitter.com/share?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&text=OpenGL数据可视化"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.linkedin.com/shareArticle?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://pinterest.com/pin/create/bookmarklet/?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&is_video=false&description=OpenGL数据可视化"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=OpenGL数据可视化&body=Check out this article: https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://getpocket.com/save?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://reddit.com/submit?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.stumbleupon.com/submit?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://digg.com/submit?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.tumblr.com/share/link?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&name=OpenGL数据可视化&description="><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://news.ycombinator.com/submitlink?u=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&t=OpenGL数据可视化"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE%E5%8F%8A%E8%BF%90%E8%A1%8C%E7%AC%AC%E4%B8%80%E4%B8%AAOpenGL-Application"><span class="toc-number">1.</span> <span class="toc-text">1. 开发环境配置及运行第一个OpenGL Application</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#How-to-do-it%E2%80%A6"><span class="toc-number">1.1.</span> <span class="toc-text">How to do it…</span></a></li></ol></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        OpenGL数据可视化
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">Luna2333</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2021-03-28T00:07:25.000Z" itemprop="datePublished">2021-03-28</time>
        
      
    </div>


      
    <div class="article-category">
        <i class="fas fa-archive"></i>
        <a class="category-link" href="/blog/categories/C-C/">C/C++</a> › <a class="category-link" href="/blog/categories/C-C/OpenGL/">OpenGL</a> › <a class="category-link" href="/blog/categories/C-C/OpenGL/GLFW/">GLFW</a> › <a class="category-link" href="/blog/categories/C-C/OpenGL/GLFW/Manajro/">Manajro</a>
    </div>


      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link-link" href="/blog/tags/v1/" rel="tag">v1</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h2 id="1-开发环境配置及运行第一个OpenGL-Application"><a href="#1-开发环境配置及运行第一个OpenGL-Application" class="headerlink" title="1. 开发环境配置及运行第一个OpenGL Application"></a>1. 开发环境配置及运行第一个OpenGL Application</h2><h3 id="How-to-do-it…"><a href="#How-to-do-it…" class="headerlink" title="How to do it…"></a>How to do it…</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -Syu</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S gcc</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S cmake</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">gcc --version</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S glfw-x11-git</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mkdir -p code&#x2F;Tutorial &amp;&amp; cd code&#x2F;Tutorial</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kate main.cpp</span><br></pre></td></tr></table></figure>

<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//Tutorial1/main.cpp</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span> <span class="meta-string">&lt;GLFW/glfw3.h&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span> <span class="meta-string">&lt;stdlib.h&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span> <span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">(<span class="keyword">void</span>)</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">    GLFWwindow* window;</span><br><span class="line">    <span class="keyword">if</span> (!glfwInit())</span><br><span class="line">        <span class="built_in">exit</span>(EXIT_FAILURE);</span><br><span class="line">    window = glfwCreateWindow(<span class="number">640</span>, <span class="number">480</span>, <span class="string">&quot;Chapter 1: Simple\</span></span><br><span class="line"><span class="string">        GLFW Example&quot;</span>, <span class="literal">NULL</span>, <span class="literal">NULL</span>);</span><br><span class="line">    <span class="keyword">if</span>(!window)</span><br><span class="line">    &#123;</span><br><span class="line">        glfwTerminate();</span><br><span class="line">        <span class="built_in">exit</span>(EXIT_FAILURE);</span><br><span class="line">    &#125;</span><br><span class="line">    glfwMakeContextCurrent(window);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">    <span class="keyword">while</span> (!glfwWindowShouldClose(window))</span><br><span class="line">    &#123;</span><br><span class="line">        </span><br><span class="line">        <span class="keyword">float</span> ratio;</span><br><span class="line">        <span class="keyword">int</span> width, height;</span><br><span class="line">        </span><br><span class="line">        glfwGetFramebufferSize(window, &amp;width, &amp;height);</span><br><span class="line">        ratio = (<span class="keyword">float</span>) width / (<span class="keyword">float</span>) height;</span><br><span class="line">        </span><br><span class="line">        glViewport(<span class="number">0</span>, <span class="number">0</span>, width, height);</span><br><span class="line">        glClear(GL_COLOR_BUFFER_BIT);</span><br><span class="line">        </span><br><span class="line">        <span class="comment">//5.</span></span><br><span class="line">        glMatrixMode(GL_PROJECTION);</span><br><span class="line">        glLoadIdentity();</span><br><span class="line">        glOrtho(-ratio, ratio, <span class="number">-1.f</span>, <span class="number">1.f</span>, <span class="number">1.f</span>, <span class="number">-1.f</span>);</span><br><span class="line">        glMatrixMode(GL_PROJECTION);</span><br><span class="line">        glLoadIdentity();</span><br><span class="line">        </span><br><span class="line">        <span class="comment">//6.</span></span><br><span class="line">        glRotatef((<span class="keyword">float</span>)glfwGetTime() * <span class="number">50.f</span>, <span class="number">0.f</span>, <span class="number">0.f</span>, <span class="number">1.f</span>);</span><br><span class="line">        glBegin(GL_TRIANGLES);</span><br><span class="line">        glColor3f(<span class="number">1.f</span>, <span class="number">0.f</span>, <span class="number">0.f</span>);</span><br><span class="line">        glVertex3f(<span class="number">-0.6f</span>, <span class="number">-0.4f</span>, <span class="number">0.f</span>);</span><br><span class="line">        glColor3f(<span class="number">0.f</span>, <span class="number">1.f</span>, <span class="number">0.f</span>);</span><br><span class="line">        glVertex3f(<span class="number">0.6f</span>, <span class="number">-0.4f</span>, <span class="number">0.f</span>);</span><br><span class="line">        glColor3f(<span class="number">0.f</span>, <span class="number">0.f</span>, <span class="number">1.f</span>);</span><br><span class="line">        glVertex3f(<span class="number">0.f</span>, <span class="number">0.6f</span>, <span class="number">0.f</span>);</span><br><span class="line">        glEnd();</span><br><span class="line">        </span><br><span class="line">        <span class="comment">//7.</span></span><br><span class="line">        glfwSwapBuffers(window);</span><br><span class="line">        glfwPollEvents();</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="comment">//8.</span></span><br><span class="line">    glfwDestroyWindow(window);</span><br><span class="line">    glfwTerminate();</span><br><span class="line">    <span class="built_in">exit</span>(EXIT_SUCCESS);</span><br><span class="line">    </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">gcc -o main Tutorial1&#x2F;main.cpp -lglfw -lGL</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.&#x2F;main</span><br></pre></td></tr></table></figure>
  </div>
</article>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/blog/">首页</a></li>
         
          <li><a href="/blog/about/">关于</a></li>
         
          <li><a href="/blog/archives/">归档</a></li>
         
          <li><a target="_blank" rel="noopener" href="https://gitee.com/luna2333/blog">项目</a></li>
         
          <li><a href="/blog/URL">LINK_NAME</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE%E5%8F%8A%E8%BF%90%E8%A1%8C%E7%AC%AC%E4%B8%80%E4%B8%AAOpenGL-Application"><span class="toc-number">1.</span> <span class="toc-text">1. 开发环境配置及运行第一个OpenGL Application</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#How-to-do-it%E2%80%A6"><span class="toc-number">1.1.</span> <span class="toc-text">How to do it…</span></a></li></ol></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.facebook.com/sharer.php?u=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://twitter.com/share?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&text=OpenGL数据可视化"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.linkedin.com/shareArticle?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://pinterest.com/pin/create/bookmarklet/?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&is_video=false&description=OpenGL数据可视化"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=OpenGL数据可视化&body=Check out this article: https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://getpocket.com/save?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://reddit.com/submit?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.stumbleupon.com/submit?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://digg.com/submit?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&title=OpenGL数据可视化"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.tumblr.com/share/link?url=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&name=OpenGL数据可视化&description="><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://news.ycombinator.com/submitlink?u=https://luna2333.gitee.io/blog/2021/03/28/OpenGL%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/&t=OpenGL数据可视化"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> 菜单</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> 目录</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> 分享</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> 返回顶部</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy;
    
    
    2016-2021
    Luna2333
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/blog/">首页</a></li>
         
          <li><a href="/blog/about/">关于</a></li>
         
          <li><a href="/blog/archives/">归档</a></li>
         
          <li><a target="_blank" rel="noopener" href="https://gitee.com/luna2333/blog">项目</a></li>
         
          <li><a href="/blog/URL">LINK_NAME</a></li>
        
      </ul>
    </nav>
  </div>
</footer>


    </div>
    <!-- styles -->

<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">


<link rel="stylesheet" href="/blog/lib/justified-gallery/css/justifiedGallery.min.css">


    <!-- jquery -->

<script src="/blog/lib/jquery/jquery.min.js"></script>


<script src="/blog/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>

<!-- clipboard -->

  
<script src="/blog/lib/clipboard/clipboard.min.js"></script>

  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"复制到粘贴板!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "复制成功!");
      e.clearSelection();
    })
  })
  </script>


<script src="/blog/js/main.js"></script>

<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

<!-- Cloudflare Analytics -->

<!-- Umami Analytics -->

<!-- Disqus Comments -->


</body>
</html>
